MAKE = @make@

all: @build_target@

@build_target@:
	@cd common     && $(MAKE) install-header
#	@cd operations && $(MAKE) install-header
	@cd solver     && $(MAKE) install-header
#	@cd couple     && $(MAKE) install-header
	@cd visualizer && $(MAKE) install-header
	@cd common     && $(MAKE) @build_target@
#	@cd operations && $(MAKE) @build_target@
	@cd solver     && $(MAKE) @build_target@
#	@cd couple     && $(MAKE) @build_target@
	@cd hecmw      && $(MAKE) @build_target@
	@cd visualizer && $(MAKE) @build_target@
#	@cd etc        && $(MAKE) @build_target@

msg-setup:
	@cd common     && $(MAKE) msg-setup

lex-setup:
	@cd common     && $(MAKE) lex-setup

clean:
	@cd common     && $(MAKE) clean
	@cd operations && $(MAKE) clean
	@cd solver     && $(MAKE) clean
	@cd couple     && $(MAKE) clean
	@cd hecmw      && $(MAKE) clean
	@cd visualizer && $(MAKE) clean
	@cd etc        && $(MAKE) clean

distclean:
	@cd common     && $(MAKE) distclean
	@cd operations && $(MAKE) distclean
	@cd solver     && $(MAKE) distclean
	@cd couple     && $(MAKE) distclean
	@cd hecmw      && $(MAKE) distclean
	@cd visualizer && $(MAKE) distclean
	@cd etc        && $(MAKE) distclean

install:
	@cd common     && $(MAKE) install
	@cd operations && $(MAKE) install
	@cd solver     && $(MAKE) install
	@cd couple     && $(MAKE) install
	@cd hecmw      && $(MAKE) install
	@cd visualizer && $(MAKE) install
	@cd etc        && $(MAKE) install

depend:
	@cd common     && $(MAKE) depend
	@cd operations && $(MAKE) depend
	@cd solver     && $(MAKE) depend
	@cd couple     && $(MAKE) depend
	@cd hecmw      && $(MAKE) depend
	@cd visualizer && $(MAKE) depend
	@cd etc        && $(MAKE) depend
